package com.liuwa.openapi.controller;

import com.liuwa.common.core.domain.Result;
import com.liuwa.common.utils.bean.BeanUtils;
import com.liuwa.knowledge.domain.FltrpWord;
import com.liuwa.knowledge.query.FltrpWordQuery;
import com.liuwa.knowledge.service.FltrpWordService;
import com.liuwa.openapi.common.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 外研社单词Controller
 * 
 * @author liuwa
 * @date 2025-04-02 08:48:16
 */
@RestController
@Api(value = "外研社单词")
@RequestMapping("/openapi/fltrp/words")
public class OpenapiFltrpWordController extends BaseController {

    @Autowired
    private FltrpWordService fltrpWordService;

    /**
     * 查询外研社单词列表
     */
    @ApiOperation("查询外研社单词列表")
    @GetMapping
    public Result.ItemsVo list(FltrpWordQuery query)
    {
        FltrpWord condition = new FltrpWord();
        BeanUtils.copyBeanNotNull2Bean(query, condition);
        List<FltrpWord> list = fltrpWordService.findList(condition);
        return Result.items(list);
    }


	
}
